<template>
   <span>id</span>
   <el-input
    v-model="user.id"
    style="width: 240px"
    disabled
 
  />
  <br/>
  <span>loginAct</span>
   <el-input
    v-model="user.loginAct"
    style="width: 240px"
    disabled
  
  />
  <br/>
  <span>loginPwd</span>
   <el-input
    v-model="user.loginPwd"
    style="width: 240px"
    type="password"
    disabled
  
  />
  <br/>
  <span>name</span>
   <el-input
    v-model="user.name"
    style="width: 240px"
    disabled
   
  />
  <br/>
  <span>phone</span>
   <el-input
    v-model="user.phone"
    style="width: 240px"
    disabled
   
  />
  <br/>
  <span>email</span>
   <el-input
    v-model="user.email"
    style="width: 240px"
    disabled
   
  />
  <br/>
  <span>accountNoExpired</span>
   <el-input
    v-model="user.accountNoExpired"
    style="width: 240px"
    disabled
    
  />
  <br/>
  <span>credentialsNoExpired</span>
   <el-input
    v-model="user.credentialsNoExpired"
    style="width: 240px"
    disabled
    
  />
  <br/>
  <span>accountNoLocked</span>
   <el-input
    v-model="user.accountNoLocked"
    style="width: 240px"
    disabled
    
  />
  <br/>
  <span>accountEnabled</span>
   <el-input
    v-model="user.accountEnabled"
    style="width: 240px"
    disabled
   
  />
  <br/>
  <span>createTime</span>
   <el-input
    v-model="user.createTime"
    style="width: 240px"
    disabled
   
  />
  <br/>
  <span>createUser</span>
   <el-input
    v-model="user.createUser"
    style="width: 240px"
    disabled
  />
  <br/>
  <span>editTime</span>
   <el-input
    v-model="user.editTime"
    style="width: 240px"
    disabled
   
  />
  <br/>
  <span>editUser</span>
   <el-input
    v-model="user.editUser"
    style="width: 240px"
    disabled
  />
  <br/>
  <span>lastLoginTime</span>
   <el-input
    v-model="user.lastLoginTime"
    style="width: 240px"
    disabled
   
  />


  <br/>
  <el-button type="primary" @click="back()">返回</el-button>

</template>
<script setup>
import { doGet } from '@/util/axios';
import { onMounted, shallowRef,ref } from 'vue';
import { useRoute, useRouter } from 'vue-router';

let route=useRoute()
let router=useRouter()
let user=shallowRef({})
function back(){
    router.back(1)
}
onMounted(()=>{
doGet("/userdetail",{"id":route.params.id}).then(res=>{
  console.log(res)
    user.value=res.data.data
})
})
</script>
<style scoped></style>